import Vue from 'vue'
import Vuex from 'vuex'
import actions from './actions'
import getters from './getters'
import mutations from './mutations'
import Logger from '../assets/plugins/logger.js'
Vue.use(Vuex)
const debug = process.env.NODE_ENV !== 'production'
const state = {
   newsList:{},
   newsDatails:{},
   showTaost:false,
   showMsg:'',
   test:''
}

export default new Vuex.Store({
  state,
  actions,
  getters,
  mutations,
  //modules: {
  //  user,
  //  sport,
  //  travel,
  //  detail,
  //  com
  //}
  strict: debug,
  plugins: debug ? [Logger()] : []
})

